package com.zrrd.learn.chapter08.Goods;

/**
 * 商品
 *
 * @author asus
 * @version 1.0
 * @date 2023/7/25 8:26
 */
public class DemoProduct {
    public static void main(String[] args) {

        ProType s1=new ProType("饮品","喝了喝不死的");
        ProType s2=new ProType("食物","吃了吃不死的");

        BrandType b1=new BrandType("徐福记","1992年","徐氏四兄弟");
        BrandType b2=new BrandType("美汁源","2005年","可口可乐公司");
        BrandType b3=new BrandType("oreo","2005年","可口可乐公司");

        goods p1=new goods();
        goods p2=new goods("123","沙琪玛","2元",b1,s2,"徐福记");
        goods p3=new goods("23456","果粒橙","4元",b2,s1,"可口可乐");

        p1.setNum("12345");
        p1.setName("奥利奥饼干");
        p1.setPrice("5元");
        p1.setBrand(b3);
        p1.setType(s2);
        p1.setProductAddress("亿滋");





    }
}
